package com.region.service.impl;

import java.util.List;

import com.region.dao.RegionDaoImpl;
import com.region.entity.Region;
import com.region.service.IRegionService;


public class RegionService implements IRegionService {
	
	private RegionDaoImpl regionDaoImpl;
	
	@Override
	public List<Region> findByRegionType(Integer regionType) {
		return regionDaoImpl.findByRegionType(regionType);
	}
	
	@Override
	public List<Region> findByParentId(Integer parentId) {
		return regionDaoImpl.findByParentId(parentId);
	}

	public RegionDaoImpl getRegionDaoImpl() {
		return regionDaoImpl;
	}

	public void setRegionDaoImpl(RegionDaoImpl regionDaoImpl) {
		this.regionDaoImpl = regionDaoImpl;
	}
	
}
